import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  //方便与用户权限数据可访问的页面相匹配
  meta: { 
    // 使用一个专门的字段来标识权限
    permission: 'employee' //这就是您用来匹配的“钥匙”
  },
  children: [
    {
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  },
  {
    path: '/employee/detail/:id?',
    component: () => import('@/views/employee/detail.vue'),
    // 注意：如果只想在左侧菜单显示一级菜单的话，让二级路由只有一个显示在左侧菜单
    hidden:true,//隐藏在左侧菜单
    meta: {
      title: '员工详情',
      
    }
  }
]
}
